package xiangm1;

import java.util.Scanner;

public class Task2 {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        System.out.println("请输入一个整数：");
        int num=sc.nextInt();
        int result=0;
        while(true){
            int n=num%10;
            result=result*10+n;
            num=num/10;
            if(num==0)
            {
                break;

            }
        }
        System.out.println(result);
    }
}
